package cn.zsb.dao;

import org.apache.ibatis.annotations.Param;
import cn.zsb.entity.*;

import java.util.List;

public interface EnrollDao {
    List<Enroll> findAll();
    int add(Enroll en);
    int update(Enroll en);
    int del(long id);
    Enroll get(long id);
    int checkstuname(@Param("stuname") String stuname, @Param("id") long id);
    List<Enroll> search1(@Param("school") String school, @Param("major") String major,
                         @Param("newschool") String newschool, @Param("newmajor") String newmajor,
                         @Param("pageNo") int pageNo, @Param("pageSize") int pageSize);
    int findTotal(@Param("school") String school, @Param("major") String major, @Param("newschool") String newschool, @Param("newmajor") String newmajor);
}
